package org.nerve.hibernate.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * org.nerve.hibernate.domain
 * Created by zengxm on 2016/3/11 0011.
 */
@Entity
@Table(name = "test_sfz")
public class IdCard extends BaseAnnotationEntity{
	private String name;
	private String birth;
	private String address;
	private String number;  //身份证号码
	private Date addDate;

	public Date getAddDate() {
		return addDate;
	}

	public IdCard setAddDate(Date addDate) {
		this.addDate = addDate;
		return this;
	}

	public String getName() {
		return name;
	}

	public IdCard setName(String name) {
		this.name = name;
		return this;
	}

	public String getBirth() {
		return birth;
	}

	public IdCard setBirth(String birth) {
		this.birth = birth;
		return this;
	}

	public String getAddress() {
		return address;
	}

	public IdCard setAddress(String address) {
		this.address = address;
		return this;
	}

	public String getNumber() {
		return number;
	}

	public IdCard setNumber(String number) {
		this.number = number;
		return this;
	}

	@Override
	public String toString() {
		return "IdCard{" +
				"id=" + id +
				",name='" + name + '\'' +
				", birth='" + birth + '\'' +
				", address='" + address + '\'' +
				", number='" + number + '\'' +
				", addDate=" + addDate +
				'}';
	}
}
